﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using System.Diagnostics;

namespace chad.performancecounters.console
{
    public class Logger
    {
        public static void WriteInformation(String message)
        {
            Trace.TraceInformation(message);

            Console.WriteLine(message);
            
        }

        public static void WriteWarning(String message)
        {
            Trace.TraceWarning(message);

            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine(message);
            Console.ResetColor();
        }

        public static void WriteError(String message)
        {
            Trace.TraceError(message);

            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine(message);
            Console.ResetColor();
        }
    }
}
